package com.lyy.service;

import com.github.pagehelper.PageInfo;
import com.lyy.entity.Banner;
import com.lyy.entity.Video;
import com.lyy.entity.VideoOrder;

import java.util.List;
import java.util.Map;

/**
 * @author Liangyaoyun
 */
public interface VideoService {
    int insertByVideoId(Video video);
    int updateByVideoId(Video video);
    int deleteByVideoId(Integer video);
    Video selectByVideoId(Integer video);
    int deleteByVideoIds(List<Integer> videoId);
    List<Video>selectAllVideo();
    PageInfo<Video> selectBypage(Integer pageNumber, Integer pageSize);
    /**
     * 视频评分分析
     *
     * @return key为评分，value为对应该评分的视频数量
     */
    List<Map<String, Integer>> starCount();
}
